<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

class Activity_list extends CI_Controller
{
	private $user_id;
	function __construct()
	{
		parent::__construct();
		$this->load->config();
		$this->load->config('layout', TRUE);
		$this->load->helper(array('form', 'url'));
		$this->load->library('security');
		$this->load->library('session');
		$this->load->library('tank_auth');
		$this->lang->load('activity');
		$this->load->model('activity_model');
		$this->user_id = $this->session->userdata('user_id');
	}
	
	function index()
	{
		$data = $this->session->all_userdata();
		$data['search_feature'] = $this->load->view('coplay/portal/search_feature', '', true);
		$this->load->view('coplay/header', $data);
		$post_data = $this->input->post(NULL, TRUE); 
		$data['activities'] = $this->activity_model->get_all_published_activity_by_condition($post_data);
		//echo "<pre>";print_r($data['activities']);echo "</pre>";exit;
		$data['activities_new'] = $this->activity_model->get_all_published_activity_by_create_date();
		$this->load->view('coplay/activity_list/index', $data);
		
		
	}
	
}

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */